﻿using System.Linq;

namespace Inovout.Gis.Land
{
    public class TuBanGroupLayer : GroupLayerObject
    {
        #region Constructor

        protected TuBanGroupLayer(TuBanGroupLayer tuBanGroupLayer)
            : base(tuBanGroupLayer.LayerInfo as IGroupLayerInfo)
        {
         }

        public TuBanGroupLayer(IGroupLayerInfo groupLayer) :
            base(groupLayer)
        {
        }
        #endregion

        public TuBanPointLayer PointLayer
        {
            get { return Layers.Single(layer => layer is TuBanPointLayer) as TuBanPointLayer; }
        }

        public TuBanLineLayer LineLayer
        {
            get { return Layers.Single(layer => layer is TuBanLineLayer) as TuBanLineLayer; }
        }

        public TuBanPolygonLayer PolygonLayer
        {
            get { return Layers.Single(layer => layer is TuBanPolygonLayer) as TuBanPolygonLayer; }
        }


    }
}
